package com.epam.edu.task04.Parking;

import java.util.LinkedList;
import java.util.Queue;


public class App {
	public static void main(String[] args) {
		Queue<ParkingPlace> list = new LinkedList<ParkingPlace>();
		for (int i = 1; i < 5; i++) {
			list.add(new ParkingPlace(i));
		}
		Parking<ParkingPlace> pool = new Parking<ParkingPlace>(list);
		for (int i = 0; i < 20; i++) {
			new Car(pool).start();
		}
	}
}
